home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / guis / iedit / expanders / backfill.desc < prev    next >
Encoding:
Text File  |  1996-02-22  |  636 b   |  35 lines

  1. ##RENDPRI
  2. -10
  3. ##SUPPORT
  4.  
  5. void BackFill( struct Window *Wnd )
  6. {
  7.     struct DrawInfo *dri;
  8.  
  9.     if( dri = GetScreenDrawInfo( Scr )) {
  10.     SetAPen( Wnd->RPort, dri->dri_Pens[ SHINEPEN ]);
  11.     SetAfPt( Wnd->RPort, &Pattern[0], 1 );
  12.     RectFill( Wnd->RPort, Wnd->BorderLeft, Wnd->BorderTop,
  13.           Wnd->Width - Wnd->BorderRight - 1,
  14.           Wnd->Height - Wnd->BorderBottom - 1 );
  15.     SetAfPt( Wnd->RPort, NULL, 0 );
  16.     FreeScreenDrawInfo( Scr, dri );
  17.     }
  18. }
  19.  
  20. ##INCLUDE
  21. #include <graphics/gfxmacros.h>
  22.  
  23.  
  24. ##HEADER
  25. extern void BackFill( struct Window * );
  26.  
  27. ##GLOBAL
  28. UWORD                   Pattern[ 2 ] = { 0xAAAA, 0x5555 };
  29.  
  30. ##RENDER
  31.  
  32.     BackFill( %wWnd );
  33.  
  34. ##end
  35.